package cn.softeem.tushu.Dao;

import cn.softeem.tushu.po.Cartitem;

import java.sql.SQLException;
import java.util.List;

public interface CartitemDao {
    List<Cartitem> myCart(String uid) throws SQLException;
    void addCart(Cartitem cartitem) throws SQLException;
    Cartitem findByUserAndBook(String uid, String bid) throws SQLException;
    void updateQuantity(String cartitemId,int quantity) throws  SQLException;
    void delete (String cartitemIds) throws SQLException;
    List<Cartitem> loadCartItems(String cartItemIds) throws SQLException;
}
